package com.mybatis.handler;

import com.mybatis.domain.User;
import org.apache.ibatis.session.ResultContext;
import org.apache.ibatis.session.ResultHandler;

public class UserResultHandler implements ResultHandler {
    @Override
    public void handleResult(ResultContext resultContext) {
        User user = (User) resultContext.getResultObject();
        Integer id = user.getId();
        System.out.println(id);
    }
}
